package com.young.springdemo.jpa.repository;

import com.young.springdemo.jpa.entity.RedTeacherEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @program: springdemo
 * @description 教师红名单数据库操作接口
 * @author: Young
 * @create: 2020-05-31 15:18
 **/
public interface RedTeacherRepository extends JpaRepository<RedTeacherEntity,Integer>{
    //根据
    List<RedTeacherEntity> findByRedTeacher(String redTeacher);
}
